//
//  SAPrinterSetting.h
//  Saas
//
//  Created by 杨荣 on 2020/4/14.
//  Copyright © 2020 bing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>

NS_ASSUME_NONNULL_BEGIN

@interface SAPrinterSetting : NSObject

+ (SAPrinterSetting *)shareInstance;

@property (nonatomic,strong) NSString *printerName;// 打印机名称
@property (nonatomic,assign) NSInteger printCopies;// 打印份数
@property (nonatomic,assign) NSInteger printerStatus;// 打印机连接状态 0-打印机未连接    1-打印机正在连接    2-打印机已连接
@property (nonatomic,strong) NSString *printerBleName;// 打印机连接蓝牙名称

@property (nonatomic,assign) NSInteger printTemplateType;// 打印小票排版 0-尺码横排 1-一组颜色尺码打一行
@property (nonatomic,assign) NSInteger printType; // 1 小票打印机  2 条码打印机 3 进口Woosim打印机  0 未选择类型
@property (nonatomic,strong) CBPeripheral *peripheral;//保存蓝牙




// 更新【打印小票排版】
- (void)requestByUpdatePrintTemplateTypeSuccessBlock:(NetworkingSuccessBlock)successBlock
                                           failBlock:(NetworkingFailBlock)failBlock;

// 更新【打印份数】
- (void)requestByUpdatePrintCopiesSuccessBlock:(NetworkingSuccessBlock)successBlock
                                           failBlock:(NetworkingFailBlock)failBlock;

@property (nonatomic,copy) NSString *printCopiesParentId;
@property (nonatomic,copy) NSString *printCopiesSettingId;

@property (nonatomic,copy) NSString *printTemplateTypeParentId;
@property (nonatomic,copy) NSString *printTemplateTypeSettingId;

@end

NS_ASSUME_NONNULL_END
